package pl.edu.utp.kursy.database;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Entity
@Table(name = "course_events_companies_accomodation")
public class CourseEventCompanyAccomodation extends BaseId{
    
    @ManyToOne(fetch = FetchType.EAGER)
    private CourseEvent event;
    
    @ManyToOne(fetch = FetchType.EAGER)
    private Company company;
    
    @ManyToOne(fetch = FetchType.EAGER)
    private Accomodation accomodation;

    public CourseEvent getEvent() {
        return event;
    }

    public void setEvent(CourseEvent event) {
        this.event = event;
    }

    public Company getCompany() {
        return company;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public Accomodation getAccomodation() {
        return accomodation;
    }

    public void setAccomodation(Accomodation accomodation) {
        this.accomodation = accomodation;
    }
    
}
